package com.subtlman.logframework.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.validation.annotation.Validated;

import java.util.Date;

/**
 * @Create: IntelliJ IDEA.
 * @Author: subtlman_ljx
 * @Date: 2022/11/13/22:10
 * @Description: 日志表
 */
public class LogTbl implements java.io.Serializable{

    @TableField(exist=false)
    private Integer logId;
    private String operator;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operaTime;
    private String operaContents;
    private String printContents;
    private boolean isSuccess;
    private String errorContents;

    //预留字段
    private String bak1;
    private String bak2;
    private String bak3;

    @Override
    public String toString() {
        return "LogTbl{" +
                "logId=" + logId +
                ", operator='" + operator + '\'' +
                ", operaTime=" + operaTime +
                ", operaContents='" + operaContents + '\'' +
                ", printContents='" + printContents + '\'' +
                ", isSuccess=" + isSuccess +
                ", errorContents='" + errorContents + '\'' +
                ", bak1='" + bak1 + '\'' +
                ", bak2='" + bak2 + '\'' +
                ", bak3='" + bak3 + '\'' +
                '}';
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getOperaTime() {
        return operaTime;
    }

    public void setOperaTime(Date operaTime) {
        this.operaTime = operaTime;
    }

    public String getOperaContents() {
        return operaContents;
    }

    public void setOperaContents(String operaContents) {
        this.operaContents = operaContents;
    }

    public String getPrintContents() {
        return printContents;
    }

    public void setPrintContents(String printContents) {
        this.printContents = printContents;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getErrorContents() {
        return errorContents;
    }

    public void setErrorContents(String errorContents) {
        this.errorContents = errorContents;
    }

    public String getBak1() {
        return bak1;
    }

    public void setBak1(String bak1) {
        this.bak1 = bak1;
    }

    public String getBak2() {
        return bak2;
    }

    public void setBak2(String bak2) {
        this.bak2 = bak2;
    }

    public String getBak3() {
        return bak3;
    }

    public void setBak3(String bak3) {
        this.bak3 = bak3;
    }
}
